package com.telecom.pojo.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单取消/退款记录表
 * </p>
 *
 * @author GWX.cz
 * @since 2025-07-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
public class OrderCancel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID (主键，自动增长)
     */
    private Long id;

    /**
     * 订单ID，关联 order_info 表
     */
    private Long orderId;

    /**
     * 取消原因
     */
    private String cancelReason;

    /**
     * 退款金额
     */
    private BigDecimal refundAmount;

    /**
     * 退款状态(0:PENDING 1:SUCCESS 2:FAILED)
     */
    private Integer refundStatus;

    /**
     * 操作人员ID(用户自己取消时为NULL)
     */
    private Long operatorId;

    /**
     * 取消时间
     */
    private LocalDateTime cancelTime;

    /**
     * 退款完成时间
     */
    private LocalDateTime refundTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;


}
